<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td colspan="3">PROFIL <? if ($this->sess->userid == @$alumni->userid) { ?><a href="<?= base_url() . "profile/edit" ?>" style="float: right;">Edit</a><? } ?></td>
    </tr>
    <tr>
        <td rowspan="10"><img src="<?=  base_url() . "images/medium/" . (@$alumni->picture == ""?"default.jpg":@$alumni->picture)?>"</td>
        <td>Nama</td>
        <td><?= @$alumni->name ?></td>
    </tr>
    <tr>
        <td>Angkatan</td>
        <td><?= getAngkatanName(@$alumni->graduateyear) ?></td>
    </tr>
    <tr>
        <td>Jenis Kelamin</td>
        <td><?= @$alumni->gender == "L" ? "Laki-laki" : "Perempuan" ?></td>
    </tr>
    <tr>
        <td>Status</td>
        <td><?= getStatus(@$alumni->status) ?></td>
    </tr>
    <tr>
        <td>Alamat Asal</td>
        <td>
            <?= @$alumni->homeaddress ?><br/>
            <?= getNamaKota(@$alumni->homecityid) ?><br/>
            <?= getNamaPropinsi(@$alumni->homeprovinceid) ?><br/>
            <?= @$alumni->homezipcode ?><br/>
        </td>
    </tr>
    <tr>
        <td>Alamat Domisili</td>
        <td>
            <?= @$alumni->hometownaddress ?><br/>
            <?= getNamaKota(@$alumni->hometowncityid) ?><br/>
            <?= getNamaPropinsi(@$alumni->hometownprovinceid) ?><br/>
            <?= @$alumni->hometownzipcode ?><br/>
        </td>
    </tr>
    <tr>
        <td>Kontak</td>
        <td><?= @$alumni->phone ?></td>
    </tr>
    <tr>
        <td>Email</td>
        <td><?= @$alumni->email ?></td>
    </tr>
</table>
<hr/>
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td colspan="5">PEKERJAAN <? if ($this->sess->userid == @$alumni->userid)echo '<a href="'.base_url() . 'profile/work" style="float: right;">Tambah</a>'; ?></td>
    </tr>
    <tr>
        <th>Perusahaan</th>
        <th>Bagian</th>
        <th>Jabatan</th>
        <th>Dari Tahun</th>
        <th>Sampai Tahun</th>
        <? if (@$this->sess->userid == @$alumni->userid)echo "<th></th>";?>
    </tr>
    <? if(@$kantor)foreach ($kantor as $k => $v) { ?>
    <tr>
        <td><?=@$v->kantornama?></td>
        <td><?=@$v->bagian?></td>
        <td><?=@$v->jabatan?></td>
        <td><?=@$v->daritahun?></td>
        <td><?=@$v->sampaitahun=="-"?"Sekarang":$v->sampaitahun?></td>
        <? if (@$this->sess->alumniid == @$alumni->alumniid)echo '<td><a href="'.  base_url().'profile/workedit/'. $v->alumnikantorid .'">edit</a></td>';?>
    </tr>
    <? } ?>
</table>
<hr/>
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td colspan="5">Kerabat <? if (@$this->sess->alumniid == @$alumni->alumniid)echo '<a href="'.base_url() . 'profile/addkerabat" style="float: right;">Tambah</a>'; ?></td>
    </tr>
    <tr>
        <th>Nama</th>
        <th>Alamat</th>
        <th>Kontak</th>
        <th>Email</th>
        <th>Jenkel</th>
        <th>Hubungan</th>
        <th></th>
    </tr>
    <? if(@$kerabat) foreach (@$kerabat as $k => $v) { ?>
    <tr>
        <td><?=@$v->alumninama?></td>
        <td><?=@$v->alumnialamatdomisili . ", " . @$v->kotadomisili . ", " . @$v->propinsidomisili ?></td>
        <td><?=@$v->alumnicontact?></td>
        <td><?=@$v->alumniemail?></td>
        <td><?=@$v->alumnijenkel?></td>
        <td><?= ucfirst(strtolower(@$v->alumnitype))?></td>
        <td><a href="<?=  base_url()?>kerabat/detail/<?=@$v->alumniid?>">Detail</a></td>
    </tr>
    <? } ?>
</table>
